From 8629883ac83fce8fc2e2200f57299f06fef6cf53 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Fri, 23 Aug 2024 13:53:46 +0700
Subject: <iman> update not found brand

---
 src/pages/shop/brands/[slug].jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/pages/shop/brands/[slug].jsx')

diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx
index e786ef78..88e9b302 100644
--- a/src/pages/shop/brands/[slug].jsx
+++ b/src/pages/shop/brands/[slug].jsx
@@ -18,7 +18,7 @@ export default function BrandDetail() {
   const brandName = getNameFromSlug(slug)
   const id = getIdFromSlug(slug)
   const {brand} = useBrand({id})
-  if (!brand || !brand.data || _.isEmpty(brand.data)) {
+  if ( !brand.isLoading && _.isEmpty(brand.data)) {
     return <PageNotFound />;
   }
   return (
-- 
cgit v1.2.3


From 46faf7e7ba398a4137e93559b2efa5abf3df9663 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Tue, 10 Sep 2024 15:15:09 +0700
Subject: [Renca testing google crowler]

---
 src/pages/shop/brands/[slug].jsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'src/pages/shop/brands/[slug].jsx')

diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx
index 88e9b302..ed6724ea 100644
--- a/src/pages/shop/brands/[slug].jsx
+++ b/src/pages/shop/brands/[slug].jsx
@@ -18,9 +18,10 @@ export default function BrandDetail() {
   const brandName = getNameFromSlug(slug)
   const id = getIdFromSlug(slug)
   const {brand} = useBrand({id})
-  if ( !brand.isLoading && _.isEmpty(brand.data)) {
-    return <PageNotFound />;
-  }
+  // if ( !brand.isLoading && _.isEmpty(brand.data)) {
+  //   console.log('ini masuk pak')
+  //   return <PageNotFound />;
+  // }
   return (
     <BasicLayout>
       <Seo
-- 
cgit v1.2.3

